<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let result = prompt("你好", "这是默认信息");
    console.log(result);
    let b = confirm("你喜欢我吗？");//一般在删除操作时使用
    if (b) {
        console.log("喜欢");
    } else {
        console.log("不喜欢");
    }

    alert("1");
</script>
</body>
</html>